package com.doubletick.proxy.ipidea.util.dto.account;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class ProxyAccountResult {
    /**
     * 认证账户唯一标识,id
     */
    private String id;
    /**
     * 账号名
     */
    private String account;
    /**
     * 限制流量上限(B)
     */
    private BigDecimal limit_flow;
    /**
     * 备注
     */
    private String remark;
    /**
     * 状态,0禁用,1正常
     */
    private Integer state;
    /**
     * 消耗流量(MB)
     */
    private BigDecimal consumed_flow;


    public void setConsumed_flow(BigDecimal consumed_flow) {
        if (consumed_flow.compareTo(BigDecimal.ZERO) == 0) {
            consumed_flow = new BigDecimal(0);
        }
        this.consumed_flow = consumed_flow;
    }


    public BigDecimal getConsumed_flow() {
        return consumed_flow;
    }
}
